﻿@model FastFood.Core.Models.AddressModel
           
@Html.ValidationSummary(true)
<fieldset>
    <legend>Address</legend>
    <div class="editor-label">
        @Html.LabelFor(model => model.Street)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.Street)
        @Html.ValidationMessageFor(model => model.Street)
    </div>
    <div class="editor-label">
        @Html.LabelFor(model => model.Number)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.Number)
        @Html.ValidationMessageFor(model => model.Number)
    </div>
    <div class="editor-label">
        @Html.LabelFor(model => model.ApartmentNumber)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.ApartmentNumber)
        @Html.ValidationMessageFor(model => model.ApartmentNumber)
    </div>
    <div class="editor-label">
        @Html.LabelFor(model => model.City)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.City)
        @Html.ValidationMessageFor(model => model.City)
    </div>
    <div class="editor-label">
        @Html.LabelFor(model => model.State)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.State)
        @Html.ValidationMessageFor(model => model.State)
    </div>
    <div class="editor-label">
        @Html.LabelFor(model => model.Country)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.Country)
        @Html.ValidationMessageFor(model => model.Country)
    </div>
    <div class="editor-label">
        @Html.LabelFor(model => model.PostalCode)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.PostalCode)
        @Html.ValidationMessageFor(model => model.PostalCode)
    </div>
</fieldset>

